package com.firexxx.study.functionalinterface;

/**
 * @description: TODO
 * @author: zhuangzhang2
 * @date: 2021-02-01 16:32
 */
public class Main {

    public static void fun(Consumer consumer) {
        consumer.accept("1");
    }

    public static void main(String[] args) {
        Consumer consumer = new MyConsumer();
        fun(consumer);
    }

}
